home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / misc / volume27 / psf3 / part00 next >
Encoding:
Text File  |  1992-01-20  |  6.6 KB  |  168 lines

  1. Newsgroups: comp.sources.misc
  2. From: tony@ajfcal.cuc.ab.ca (Tony Field)
  3. Subject:  v27i091:  psf3 - Postscript print filter system, v3, Part00/09
  4. Message-ID: <csm-v27i091=psf3.192642@sparky.IMD.Sterling.COM>
  5. X-Md4-Signature: 8131dc6c109c7b668e1d6975bf2f4bdb
  6. Date: Tue, 21 Jan 1992 01:28:56 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: tony@ajfcal.cuc.ab.ca (Tony Field)
  10. Posting-number: Volume 27, Issue 91
  11. Archive-name: psf3/part00
  12. Environment: ISC, SUNOS, SYSVR3, DOS
  13. Supersedes: psf2: Volume 12, Issue 4-9
  14.  
  15.    PSF is a postscript print filter system designed to give reasonable
  16.    control over text output to a postscript printer. If desired, psf can
  17.    be installed as a filter for the lp/lpsched or lpr/lpd spooling systems.
  18.  
  19.    Printed output may be configured for:
  20.  
  21.         o  1-up, 2-up or 4-up on a page, landscape/portrait
  22.         o  fonts/point size
  23.         o  double sided printing
  24.         o  pages scaled by row and column count
  25.         o  lp banner page printing
  26.         o  reverse order printing
  27.         o  languages other than English
  28.  
  29.    If the printer normally stacks output paper "face up", psf
  30.    automatically reverses the order of the printed pages to ensure
  31.    manual reordering is not needed.
  32.  
  33.    Additional routines are provided to print nroff'ed documents, man
  34.    pages, and mail boxes.  (troff is NOT supported: use psroff or thack)
  35.  
  36.    Printer definitions for a number of printers are user-selectable
  37.    during installation. Unknown printers can be manually configured or
  38.    the "simple installation" process described below can be used. By
  39.    using "accurate" printer descriptions, psf can do quite a good job of
  40.    page scaling, rotation and double sided printing.
  41.  
  42.    If lp/lpsched is the print spooler, various formatting options may
  43.    be selected with the -o"<opt>" feature of lp.  
  44.    
  45.    If lpr/lpd is the print spooler, then multiple 'logical printers' can
  46.    be created such that each printer has an associated set of print
  47.    options (See Install.lpd for details).  A number of (hopefully)
  48.    useful printer configurations are created during "make install".
  49.  
  50.    As part of the spooler system, psf filters will not re-process
  51.    files already in postscript format (unless the -z option is used).
  52.  
  53.    The installation process is defined in the various "Install.*" files.
  54.    General installation information for SysV r3 using lp/lpsched
  55.    and BSD-type systems using lpr/lpd are described in Install.unix.
  56.    Installation for SysV r4 may different: you will have to adapt
  57.    the installation process for such systems.
  58.   
  59.     Install.unix    installation guide
  60.     Install.lpd    additonal information for use with lpr/lpd
  61.     Install.def    how to create a printer definition for a
  62.             printer not know to psf.
  63.     Install.dos    installation notes for MSDOS
  64.  
  65.    Installed binaries and scripts should give usage help information
  66.    if they are executed without argument or with a "-":
  67.    
  68.        psfnroff -
  69.     Usage:  psfnroff [nroff options] doc.nroff doc.nroff ...
  70.       e.g.  psfnroff -ms document.ms
  71.  
  72.    This version of psf currently was developed to run under Interactive
  73.    Unix with lp/lpsched or lpr/lpd as the spooling system. It also runs
  74.    on various other versions of Unix such as SUNOS as well as MSDOS.
  75.  
  76. SIMPLE INSTALLATION
  77. ^^^^^^^^^^^^^^^^^^^
  78.    If it is too much trouble to read the Makefile and various
  79.    Install.* files, a quick way to play with psf is to assume
  80.    all standard defaults and:
  81.  
  82.         make psf
  83.  
  84.    Psf will generate help with:
  85.    
  86.         psf -
  87.    
  88.    Psf can be (probably) immediately used in a simple fashion.
  89.    This assumes that the default printer is an NEC LC890 - which is
  90.    a reasonable approximation to many other printers.  Psf can then 
  91.    be used with:
  92.  
  93.         psf this.file  | lp
  94.  
  95.  
  96. EUROPEAN LANGUAGES and PAPER SIZES
  97. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  98.    Rudimentary provision have been made for languages other than
  99.    English. An example Scandinavian font setup is provided in file
  100.    "language.PSF". This is NOT a working example: it must be modified
  101.    for real use.  Any feedback and/or suggestions for modifications
  102.    regarding the use of non-English languages would be appreciated.
  103.  
  104.    Documentation for this feature is minimal: some postscript knowledge
  105.    is assumed! Refer to the Blue Book, Postscript Language Tutorial and
  106.    Cookbook, page 111 (Program 18, Making small changes to encoding
  107.    vectors). If Interactive Unix is used (and probably AT&T SysV 3.2),
  108.    refer to loadfont(1) and ttymap(1) as possible guides for character
  109.    translations.
  110.  
  111.    To use this feature, edit file "language.PSF" to reflect any font
  112.    encoding and character translations needed for the target language.
  113.    These lines are identified by "%%font", "%%translate" and "% ENCODE".
  114.  
  115.    Append this edited file to the end of "psfprint.def":
  116.  
  117.        cat psfprint.def language.PSF > psfprint.new
  118.  
  119.    Test the printer.new file with some text that requires the use
  120.    of the modified fonts:
  121.    
  122.            psf -u psfprint.new text.fil | lpr
  123.  
  124.    The "psfprint.new" now become the psfprint.def file for use with
  125.    the new language description. Copy it to the destination location as
  126.    set up in the Makefile.
  127.  
  128.    Only psf honours the font extensions correctly. If proper support is
  129.    needed for banner printing, the source for psfbanner.c must be modified.
  130.    Other sources are not concerned with language translation.
  131.  
  132.    The various scripts (psfnroff, psfman, psfmbox) have not been used with
  133.    European paper sizes. If there are problems with page layout, you may
  134.    have to adjust the "-p nn" point size, "-l nn" line-count option,
  135.    or the "-r nn" remove-lines option passed to psfbs.
  136.  
  137.    If the "psfbanner" routine is used to print pretty printer banner
  138.    pages, it (hopefully) should automatically adjust to the European
  139.    sizes if it is run as part of the printer scripts.
  140.  
  141.  
  142. DOUBLE SIDED PRINTING
  143. ^^^^^^^^^^^^^^^^^^^^^
  144.    DOUBLE SIDED PRINTING IS NOT RECOMMEDED UNLESS THE PRINTER
  145.    IS SPECIFICALLY DESIGNED FOR TO ALLOW DOUBLE SIDE PRINTING.
  146.  
  147.    Double sided printing is more convenient on printers with two paper
  148.    trays. If two paper trays are avaliable, then psf could be compiled
  149.    with "-DHOPPER" (see the Makefile).  Double sided printing may be
  150.    done as part of the lp spooler system by passing the "-d" option. Psf
  151.    internally calls psfdoub to print double sided. This assumes that the
  152.    printer has at least two paper hoppers.
  153.  
  154.    E.g.:
  155.  
  156.     lp -o"-d" document.file
  157.  
  158.    If psf was not compiled with "-DHOPPER", then double sided printing
  159.    is done as described in psfdoub.1.  
  160.    
  161.    This feature should not be used unless the paper tray is essentially
  162.    reserved for double sided printing.
  163.  
  164.    Tony Field: tony@ajfcal.cuc.ab.ca
  165.  ------------------------------------------
  166.  
  167. exit 0 # Just in case...
  168.